home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20021006-20030409
/
000073_fdc@columbia.edu_Tue Nov 12 13:19:43 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
42 lines
Article: 13839 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: telnet and pseudo-terminals
Date: 12 Nov 2002 13:19:25 -0500
Organization: Columbia University
Lines: 25
Message-ID: <aqrgnd$l1u$1@watsol.cc.columbia.edu>
References: <e81154be.0211120928.281cafa6@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1037125166 5600 128.59.39.139 (12 Nov 2002 18:19:26 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 12 Nov 2002 18:19:26 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13839
In article <e81154be.0211120928.281cafa6@posting.google.com>,
Ysidro Salinas <ysidros@advmail.com> wrote:
: Is it possible to use C-Kermit to provide "serial-like" input/output
: through a telnet connection to another communication program? If so,
: how? I've read about the pipe and pty features, the redirect feature,
: and I've also scowered the "Using C-Kermit" book, but I'm not quite
: sure if any of these do what I want. I have an existing comm program
: that screen-scraps a remote system via a serial port, I'd like to
: extend it to do exactly the same over a telnet connection, but I'd
: really like to avoid writing code to perform the telnet protocol. Can
: I use kermit to establish the telnet connection, feed input and output
: to my program, and handle all the telnet communication at the same
: time?
:
You could try the REDIRECT command:
set host foo.bar.baz
if fail ...
redirect <name-and-args-of-your-screen-scraping-program>
If your communications program uses stdio for the user end, it should
work. If not, you could always rewrite the whole thing as a Kermit
script, thus making it both transport- and platform-independent.
- Frank